{{define "Title"}}Control-Run查询{{end}}
{{define "Content"}}

<fieldset>
  <legend><b>Control-Run查询</b></legend>
</fieldset>

<script type=text/javascript src="/js/tablestyle.js"></script>

{{if .wo_main}}
<div class="content-box">
  <div class="content-box-header">
    <p style="font-size: 16px;">&nbsp;&nbsp;<b>工单</b></p>
  </div>
<div class="content-box-content">
<table id="tbl_main" width="100%" border="1" cellspacing="0" cellpadding="0">
  <thead>
    <tr>
      <th>工单</th>
      <th>版本</th>
      <th>物料</th>
      <th>描述</th>
      <th>数量</th>
      <th>制程</th>
      <th>备注</th>
    </tr>
  </thead>
  <tbody>
    {{range .wo_main}}
    <tr>
      <td id="main_won" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px"><a href="/querywo?q={{.Wono | html}}">{{.Wono | html}}</a></td>
      <td fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px">{{.Version | html}}</td>
      <td fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px">{{.Item | html}}</td>
      <td fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px">{{.Desc | html}}</td>
      <td fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px">{{.Qty | html}}</td>
      <td fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px"><a href="/routing?q={{.Route | html}}">{{.Route | html}}</a></td>
      <td fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px">{{.Remark | html}}</td>
    </tr>
    {{end}}
  </tbody>
</table>
</div>
</div>
{{end}}

{{end}}